function userLogin(){
	var email=$.trim($("#account_pop").val());
	var pwd=$.trim($("#actpwd_pop").val());
	$("#account_pop").click(function(){
		$("#loginTip").text("邮箱或密码错误").css("display","none");
	});
	$("#actpwd_pop").click(function(){
		$("#loginTip").text("邮箱或密码错误").css("display","none");
	});
	if(email==""){
		$("#loginTip").text("请输入登录邮箱名").css("display","inline-block");
		return;
	}
	if(pwd==""){
		$("#loginTip").text("密码不能为空").css("display","inline-block");
		return;
	}
	$.post("loginServlet",{op:'userLogin',email:email,pwd:pwd},function(data){
		data=parseInt($.trim(data));
		if(data==1){
			//location.href='index.html';
			history.back(-1);
			getUserLoginInfo();
		}else{
			$("#loginTip").text("邮箱或密码错误").css("display","inline-block");
			
			$("#actpwd_pop").click(function(){
				$("#loginTip").text("邮箱或密码错误").css("display","none");
			});
		}
	});
	
	
}


